package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.ShopingCar;
import cn.wolfcode.trip.base.query.ShopingCarQueryObject;
import com.github.pagehelper.PageInfo;

public interface IShopingCarService {
    /**
     * 产品的高级查询
     * @param qo
     * @return
     */
    PageInfo query(ShopingCarQueryObject qo);


    /**
     * 添加或者更新到购物车
     * @param car
     */
    void saveOrUpdate(ShopingCar car);

    /**
     * 删除某一用户 购物车的某一商品
     * @param productId
     */
    void delete(Long productId);

    /**
     * 购物车产品数量更新
     * @param shopingCar
     */
    void updateNum(ShopingCar shopingCar);

}
